/**************************************************************************
Date: 2021-11-24
Description: 门禁服务
**************************************************************************/
#ifndef __CNET_WORK_SERVICE_HEADER_H__
#define __CNET_WORK_SERVICE_HEADER_H__

#include <atomic>
#include <string>
#include <unordered_map>
#include <QtCore/qglobal.h>
#include "xpack/json.h"

#include "base_lib/CBaseLibSdk.h"
#include "base_net/CBaseNetSdk.h"
#include <functional>

BASELIB_USE_NAMESPACE
BASENET_USE_NAMESPACE




using namespace std;
using namespace std::placeholders;

#ifdef QTNETWORK_LIBRARY
#	ifdef QTNETWORK_LIBRARY
#		define NETWORKSERVICE_API __declspec(dllexport)
#		define QTNETWORK_EXPORT __declspec(dllexport)
#	else
#		define NETWORKSERVICE_API __declspec(dllimport)
#		define QTNETWORK_EXPORT __declspec(dllimport)
#	endif
#else
#	define NETWORKSERVICE_API
#	define QTNETWORK_EXPORT
#endif


//命名空间宏定义
#define NETWORKSERVICE_NAMESPACE _network_service
#define NETWORKSERVICE_USE_NAMESPACE using namespace ::NETWORKSERVICE_NAMESPACE;
#define NETWORKSERVICE_BEGIN_NAMESPACE namespace NETWORKSERVICE_NAMESPACE {
#define NETWORKSERVICE_END_NAMESPACE }

// code类型 string是否开启，如果不开启就默认int类型
#define NET_CODE_TYPE_STRING 0

#define HTTP_CLINET_LOG

#endif

